package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.core.annotation.Order;

import java.io.Serializable;

/**
 * 出库实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_preoutorder")
public class PreOutOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 出库单编号*/
    @TableId(value = "pk_preOutOrderId", type = IdType.AUTO)
    private Integer preOutOrderId;

    /** 出库数量*/
    @TableField("p_outNum")
    private Integer outNum;

    /** 客户编号*/
    @TableField("fk_customId")
    private Integer customId;

    /** 销售员编号*/
    @TableField("fk_userId")
    private Integer userId;

    /** 商品编号*/
    @TableField("fk_productId")
    private Integer productId;

    /** 销售员对象*/
    @TableField(exist = false)
    private  User user;

    /** 商品对象*/
    @TableField(exist = false)
     private Product product;

    /** 客户对象*/
    @TableField(exist = false)
    private  Custom custom;

}
